<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>个人信息和账户信息展示</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
        }

        .container {
            max-width: 800px;
            margin: 0 auto;
            padding: 20px;
        }

        .section {
            margin-bottom: 30px;
            background-color: #f9f9f9;
            padding: 20px;
            border-radius: 5px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        h2 {
            margin-top: 0;
        }

        .info-item {
            margin-bottom: 10px;
        }

        .info-label {
            font-weight: bold;
        }

        .btn {
            background-color: #4CAF50;
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }

        .btn:hover {
            background-color: #45a049;
        }
    </style>
</head>
<body>
<div class="container">
    <div class="section" id="personalInfo" style="display: none;">
        <h2>个人信息</h2>
        <div class="info-item">
            <span class="info-label">姓名:</span> 张三
        </div>
        <div class="info-item">
            <span class="info-label">微信:</span> zhangsan123
        </div>
        <div class="info-item">
            <span class="info-label">电话:</span> 13512345678
        </div>
        <div class="info-item">
            <span class="info-label">QQ:</span> 123456789
        </div>
        <div class="info-item">
            <span class="info-label">邮箱:</span> zhangsan@example.com
        </div>
    </div>

    <div class="section" id="accountInfo" style="display: none;">
        <h2>账户信息</h2>
        <div class="info-item">
            <span class="info-label">账户:</span> zhangsan123
        </div>
        <div class="info-item">
            <span class="info-label">密码:</span> ********
        </div>
        <div class="info-item">
            <span class="info-label">电话号码:</span> 13512345678
        </div>
        <div class="info-item">
            <span class="info-label">验证码:</span> 1234
        </div>
    </div>

    <div class="btn-group">
        <button class="btn" onclick="showSection('personalInfo')">查看个人信息</button>
        <button class="btn" onclick="showSection('accountInfo')">查看账户信息</button>
    </div>
</div>

<script>
    function showSection(sectionId) {
        var personalInfo = document.getElementById("personalInfo");
        var accountInfo = document.getElementById("accountInfo");

        personalInfo.style.display = sectionId === "personalInfo" ? "block" : "none";
        accountInfo.style.display = sectionId === "accountInfo" ? "block" : "none";
    }
</script>
</body>
</html>